/**
 *
 * 游戏界面
 *
 */
class GamePanel extends BasePanel{

    public constructor(){
        super();
    }
    private setBtn: EButton;
    private gameView: GameView;
    // 初始化面板
    public initPanel():void{
        this.gameView = new GameView()
        this.addChild(this.gameView);
		
		
        this.setBtn = new EButton(this,"setBtn",this.setBtnHandle,"",30,1);
        this.setBtn.x = 400;
        this.setBtn.y = 0;
        this.addChild(this.setBtn);
    }
    
    private setBtnHandle(): void {
		GameManager.i.GamePause();
		Global.dispatchEvent(MainNotify.openSetPanelNotify);
    }
	
    
    public dispose(): void {
        this.gameView.dispose();
        this.removeChild(this.gameView);
        this.gameView = null;  
                
   }


}

